// vite.config.ts
import { defineConfig } from "file:///E:/admin/vite-admin/node_modules/vite/dist/node/index.js";
import vue from "file:///E:/admin/vite-admin/node_modules/@vitejs/plugin-vue/dist/index.mjs";
var vite_config_default = defineConfig({
  plugins: [vue()],
  // 配置代理
  // 配置前端服务地址和端口
  server: {
    host: "0.0.0.0",
    port: 3e3,
    // 是否开启 https
    // https: false,
    proxy: {
      "/api": {
        // 后台地址
        target: "http://127.0.0.1/",
        changeOrigin: true,
        rewrite: (path) => path.replace(/\/api/, "")
      }
    }
  }
  // 设置反向代理，跨域
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJFOlxcXFxhZG1pblxcXFx2aXRlLWFkbWluXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJFOlxcXFxhZG1pblxcXFx2aXRlLWFkbWluXFxcXHZpdGUuY29uZmlnLnRzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9FOi9hZG1pbi92aXRlLWFkbWluL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZSdcbmltcG9ydCB2dWUgZnJvbSAnQHZpdGVqcy9wbHVnaW4tdnVlJ1xuXG4vLyBodHRwczovL3ZpdGVqcy5kZXYvY29uZmlnL1xuZXhwb3J0IGRlZmF1bHQgZGVmaW5lQ29uZmlnKHtcbiAgcGx1Z2luczogW3Z1ZSgpXSxcbiAgLy8gXHU5MTREXHU3RjZFXHU0RUUzXHU3NDA2XG4gIC8vIFx1OTE0RFx1N0Y2RVx1NTI0RFx1N0FFRlx1Nj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